package com.cangxuan.backend.entity;

import com.cangxuan.backend.annotation.check.Min;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 首页轮播图实体类
 * author:何程城
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("首页轮播图实体类")
public class Banner implements Serializable {
    @Min(value = 0,message = "id不能为负数")
    @ApiModelProperty("轮播图ID")
    private int id; //id
    @ApiModelProperty("轮播图路径")
    private String src; //图片路径
}
